package com.guli.product.feign;


import com.guli.common.to.esmodel.SkuEsModel;
import com.guli.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("search-service")
@Repository
public interface SearchFeign {
    /*
    * 插入数据到elasticSearch
    * */
    @PostMapping("/index/data/product")
    public R productUp(@RequestBody List<SkuEsModel> skuEsModels);
}
